Here is tutorial for deploying DXL addins on the server. Scribbled it up. Hope it looks good. Deploying DXL for general use is a bit tricky. I will say however that the "server" you choose to deploy the DXL has nothing to do with the "server" on which resides the database. In fact, the database server is likely hidden within some firewall making it "impossible" to use it for general use DXL. I'm going to give you the various rules (for future reference), then the various exceptions and nuances, then some examples. Don't expect to understand everything the 1st time through. Read it, look at the examples, then re-read it for better understanding. Resources:
There are 4 different "DXL Menu" contexts:
Menu Control Menu Control Rules
Menu Control Nuances
A "well constructed" FolderRules Well constructed Folderhas these characteristics:
Well constructed FolderNuances
A "well constructed" DXL filerules A "well constructed" DXL filehas these characteristics:
A "well constructed" DXL fileNuances
Example. Lets look at the deployed formal menu Addins. Go here: C:\Program Files (x86)\IBM\Rational\DOORS\9.5\lib\dxl\addins
Open the "user" sub-folder.
Open the DXL window. "Browse" for DXL.
Go back to "user" folder. Create a new DXL file, perhaps "ABC.dxl"; give it a comment line and comment block. Open a new module, notice "ABC" is shown even though it does not referenced in the "user.idx" file. Back out. Copy the "user" folder and create folder "user1". Open it and rename 2 files to "user1". Open a modoule and notice 2 "User" menus/ 2nd to last screen shot: My actual "addins" variable in the registry. "addins" value is: i:\DXL-InProgress;i:\DXL-InProgress\Menu-Formal;i:\DXL-InProgress\Menu-Explorer;i:\DXL-InProgress\Menu-Landale. Therefore these locations are available as top-level folders for addins:
Note that there are no spaces adjacent to the semi-colons. That is mandatory since folder names may not start nor end in a space. Last screen shot: Actual network folder.
llandale - Wed Sep 10 13:11:08 EDT 2014 |
Re: Addins on Server Is it worth noting that if you update a menu item dxl of the following form, the menu item will only be update when: - a module is re-opened - DOORS is restarted // menu /* * menu */ // menu code here However, menu item dxl of the following form can be updated on-the-fly, by updating the .inc file, which helps when developing and deploying updates: // menu /* * menu */ #include <menuitem.inc>
|
Re: Addins on Server 7XUT_Antonio_Norkus - Thu Sep 11 05:19:55 EDT 2014 Is it worth noting that if you update a menu item dxl of the following form, the menu item will only be update when: - a module is re-opened - DOORS is restarted // menu /* * menu */ // menu code here However, menu item dxl of the following form can be updated on-the-fly, by updating the .inc file, which helps when developing and deploying updates: // menu /* * menu */ #include <menuitem.inc>
I was addressing when the menu itself changes, not the underlying code. In any event I don't think whyour first example is true. If you edit the DXL directly and then use the menu to invoke it, you get the changes; just like your 2nd example where you modify an include file. Attr-DXL is different, it seems to be interpreted and stored when the module is 1st opened; the interpreted version is run. So changing an include there does NOT change the DXL until U open the module (or modify the Attr-DX Definition). -Louie |
Re: Addins on Server llandale - Thu Sep 11 08:57:00 EDT 2014
I was addressing when the menu itself changes, not the underlying code. In any event I don't think whyour first example is true. If you edit the DXL directly and then use the menu to invoke it, you get the changes; just like your 2nd example where you modify an include file. Attr-DXL is different, it seems to be interpreted and stored when the module is 1st opened; the interpreted version is run. So changing an include there does NOT change the DXL until U open the module (or modify the Attr-DX Definition). -Louie Have you tried it Louie? - open a module - edit a menu dxl - without closing the module, select the menu...you should find that the old version of the menu is executed...DOORS seems to cache the menu dxl when the module is opened The reason the 2nd example updates, is that only the #include statement is cached, which is dynamically evaluated each time the menu is executed. Anyhow, I find it a useful strategy. |